//  登陆接口需要携带的参数类型
export interface loginFormData {
    username: string,
    password: string
}

interface dataType {
    token: string
}

// 登陆接口返回数据类型
export interface loginResponseData {
    code: number,
    data: dataType
}

interface userInfo {
    userId: number,
    avatar: string,
    username: string,
    password: string,
    desc: string,
    roles: string[],
    buttons: string[],
    routes: string[],
    token: string,
}

// 定义服务器返回用户信息相关数据
interface user {
    checkuser: userInfo
}

export interface userInfoReponseData {
    code: number,
    data: user
}